/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.src.ptit.javatraining.huynh.btvn1;

import java.util.Arrays;
import java.util.Scanner;

/**
 *
 * @author user
 */
public class Lv2Bai1 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n;
        try {
            n = sc.nextInt();
            int a[] = new int[n];
            for (int i = 0; i < a.length; i++) {
                a[i] = sc.nextInt();
            }
            Arrays.sort(a);
            for (int i = 0; i < a.length; i++) {
                System.out.println(a[i]);
            }
        } catch (Exception e) {
            System.out.println("Moi nhap lai !");
        }
    }
}
